package org.voyager.service.front.fallback;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import org.voyager.common.beans.JsonResult;
import org.voyager.service.front.VO.ScenicVo;
import org.voyager.service.front.subsystem.ScenicClient;

import com.alibaba.fastjson.JSONObject;

@Component
public class ScenicClientFallBack implements ScenicClient {

	private final Logger logger = LoggerFactory.getLogger(ScenicClientFallBack.class);
	
	@Override
	public JsonResult queryScenicGroups(ScenicVo scenicVo) {
		logger.error("断路器：景点分组查询服务异常");
		return JsonResult.error("景点分组查询服务异常");
	}

	@Override
	public JsonResult queryScenicSpots(ScenicVo scenicVo) {
		logger.error("断路器：景点查询服务异常");
		return JsonResult.error("景点查询服务异常");
	}

	@Override
	public JsonResult queryScenicSpotsById(JSONObject jo) {
		logger.error("断路器：根据id查询景点服务异常");
		return JsonResult.error("根据id查询景点服务异常");
	}

	@Override
	public JsonResult aueryAllList() {
		logger.error("断路器：查询所有景点服务异常");
		return JsonResult.error("查询所有景点服务异常");
	}

}
